From 4fe4a70f4088244c2869509f6a3fd76b697f88d7 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Thu, 14 Jul 2011 01:17:24 +0200 Subject: [PATCH] Mention :visible menu bar separators * keymaps.texi (Menu Bar): Mention :visible and :enable (bug#6344). Text by Drew Adams. --- doc/lispref/ChangeLog | 3 +++ doc/lispref/keymaps.texi | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a2956878cce..f853ee4c5b3 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,8 @@ 2011-07-13 Lars Magne Ingebrigtsen + * keymaps.texi (Menu Bar): Mention :visible and :enable + (bug#6344). Text by Drew Adams. + * modes.texi (Running Hooks): Mention buffer-local hook variables (bug#6218). diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index cf1db5b7fce..15b2f2079ba 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi @@ -2262,6 +2262,17 @@ the double-dash and replacing each single dash with capitalization of the following word. Thus, @code{"--:singleLine"}, is equivalent to @code{"--single-line"}. + You can use a longer form to specify keywords such as @code{:enable} +and @code{:visible} for a menu separator: + +@code{(menu-item @var{separator-type} nil . @var{item-property-list})} + +For example: + +@example +(menu-item "--" nil :visible (boundp 'foo)) +@end example + Some systems and display toolkits don't really handle all of these separator types. If you use a type that isn't supported, the menu displays a similar kind of separator that is supported. -- 2.30.2